package com.example.dockerstudy.controller;

import com.example.dockerstudy.entry.Employee;
import com.example.dockerstudy.service.EmployeeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 功能描述:
 *
 * @author: 李明杰
 * @date: 2022/1/14 11:07
 */
@RestController
public class EmployeeController {
    @Resource
    EmployeeService employeeService;

    @GetMapping("/selectList")
    public List<Employee> selectList() {
        return employeeService.list();
    }
}
